package com.zerous.simplerts.object;

import com.zerous.simplerts.math.*;
import com.zerous.simplerts.*;

public class GameObject
{
	public Vec2 position, velocity, direction;
	Sprite src;
	Controler controler;
	
	public GameObject(Sprite sprite)
	{
		src = sprite;
		position = new Vec2(0, 0);
		velocity = new Vec2(0, 0);
		direction = new Vec2(0, 0);
	}
	
	public void setControler(Controler controler)
	{
		this.controler = controler;
	}
	
	public void setDirection(float x, float y)
	{
		direction.set(x, y);
	}
	
	public void setVelocity(float x, float y)
	{
		velocity.set(x, y);
	}
	
	public void setPosition(float x, float y)
	{
		position.set(x, y);
	}
	
	public interface Controler
	{
		public void update(GameObject g);
	}
}
